.frame {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    margin-top: -200px;
    margin-left: -200px;
    border-radius: 3px;
    box-shadow: 1px 2px 10px 0px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to top right, #dc3535, #f1b418);
    color: #fff;
}

.center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 8s infinite linear;
}

.face {
    position: absolute;
    width: 200px;
    height: 80px;
    border: 2px solid #333;
    box-sizing: border-box;
    background-color: rgba(231, 231, 231, 0.1);
    /* 透明效果 */
}

.plane_1 {
    transform: rotateX(0deg) translateZ(100px);
}

.plane_2 {
    transform: rotateX(45deg) translateZ(100px);
}

.plane_3 {
    transform: rotateX(90deg) translateZ(100px);
}

.plane_4 {
    transform: rotateX(135deg) translateZ(100px);
}

.plane_5 {
    transform: rotateX(180deg) translateZ(100px);
}

.plane_6 {
    transform: rotateX(225deg) translateZ(100px);
}

.plane_7 {
    transform: rotateX(270deg) translateZ(100px);
}

.plane_8 {
    transform: rotateX(315deg) translateZ(100px);
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0) rotateY(-20deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(-20deg);
    }
}